package com.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.demo.domain.UserDTO;

@Controller
public class UserController {
	
	private static final Logger logger = LoggerFactory.getLogger(UserController.class);
	
	@RequestMapping("/queryuserlist")
	public String queryUserList(ModelMap modelMap){
		UserDTO user01 = new UserDTO();
		user01.setUsername("lixiaoliang");
		user01.setRealname("李晓亮");
		user01.setPassword("123abc");
		user01.setFlag("0");
		user01.setIsadmin("1");
		user01.setTelephone("13254587954");
		user01.setSex("男");
		user01.setBirth("1995-05-12");
		user01.setEducation("大专");
		user01.setCreatedate("2018-08-01 20:33:09");
		user01.setCreator("admin");
		user01.setModifydate("2018-08-01 20:33:09");
		user01.setModifier("admin");
		modelMap.addAttribute("user", user01);
		logger.info("进入用户查询列表页面");
		return "userList";
	}
	
}
